<ion-side-menus enable-menu-with-back-views="false">
    <ion-side-menu-content edge-drag-threshold="true" class="mainpage">
        <ion-nav-bar class="bar-stable" align-title="center">
            <ion-nav-buttons side="left">
                <button class="button button-icon button-clear ion-navicon" menu-toggle="left"></button>
            </ion-nav-buttons>
        </ion-nav-bar>
        <ion-nav-view name="menuContent"></ion-nav-view>
        <ion-footer-bar ng-if="!isDriver()" ng-show="!($root.currentUser.request || $root.loggingIn)" class="bar-stable">
            <a class="button col col-67" ng-click="request()">我要司机</a>
            <a nav-transition="ios" nav-direction="forward" id="cya" class="button col col-25" ng-click="openModal()">快捷服务</a>
        </ion-footer-bar>
        <!--
        <ion-footer-bar ng-if="isDriver()" ng-show="!($root.currentUser.request || $root.loggingIn)" class="bar-stable">
        <a class="button col col-67" ng-click="grab()">一键抢单</a>
        <a id="cya" class="button col col-25"  ng-href="#/nearby()" target="_self">附近车主</a>
    </ion-footer-bar>
    -->
    </ion-side-menu-content>
    <ion-side-menu side="left">
        <ion-content id="simeu" scroll="true" scrollbar-y="false">
            <ion-list id="gray">
                <a menu-close nav-transition="ios" nav-direction="forward" class="item item-avatar item-icon-left item-icon-right" ng-show="$root.currentUser || $root.loggingIn" ng-href="#/account" target="_self">
                    <img ng-src='{{$root.currentUser.images.face}}' id="minilogo">
                    <h2>{{ $root.currentUser.username}}</h2>
                    <p style="color:aquamarine;">已登录</p> <i class="icon ion-ios-person-outline  icon-clear"></i>
                </a>
                <a menu-close nav-transition="ios" nav-direction="forward" class="item item-icon-left item-icon-right" ng-hide="$root.currentUser || $root.loggingIn" ng-href="#/account" target="_self">
                    <i class="icon ion-ios-person"></i> 未登录 <i class="icon ion-ios-arrow-right  icon-clear"></i>
                </a>
                <a menu-close nav-transition="ios" nav-direction="forward" class="item item-icon-left item-icon-right" ng-href="#/users" target="_self">
                    <i class="icon ion-card"></i> 账户
                    <i class="icon ion-ios-arrow-right  icon-clear"></i>
                </a>
                <a id="msge" class="item item-icon-left item-icon-right" ng-click="showMsg()">
                    <i class="icon ion-email-unread"></i> 消息
                    <i class="badge badge-assertive icon-badge">{{messages.length}}</i>
                </a>
                <!--
                <a menu-close class="item item-icon-left item-icon-right" ng-href="#/adminapplys" target="_self" ng-show="isAdmin()">
            <i class="icon ion-ios-eye"></i>
            资格审核
            <i class="icon ion-ios-arrow-right  icon-clear"></i>
        </a>
        -->
                <a menu-close nav-transition="ios" nav-direction="forward" class="item item-icon-left item-icon-right" ng-href="#/order" target="_self">
                    <i class="icon ion-clipboard"></i> 订单
                    <i class="icon ion-ios-arrow-right  icon-clear"></i>
                </a>
                <!--
                <a menu-close class="item item-icon-left item-icon-right" ng-href="#/invoice" target="_self" >
        <i class="icon ion-ios-pricetags"></i>
        申请发票
        <i class="icon ion-ios-arrow-right  icon-clear"></i>
    </a>

    <a menu-close class="item item-icon-left item-icon-right" ng-href="http://data.music.qq.com/playsong.html?hostuin=879698635&songid=644468#p=&source=qq&appshare=iphone" target="_self" >
        <i class="icon ion-ios-cart"></i>
        汽车音乐
        <i class="icon ion-ios-arrow-right  icon-clear"></i>
    </a>
    -->
                <a menu-close nav-transition="ios" nav-direction="forward" class="item item-icon-left item-icon-right" ng-href="#/more" target="_self">
                    <i class="icon ion-paper-airplane"></i> 更多
                    <i class="icon ion-ios-arrow-right  icon-clear"></i>
                </a>
            </ion-list>
        </ion-content>
    </ion-side-menu>
</ion-side-menus>
